import '../../core/utils/route/route_util.dart';
import 'home_routes.dart';

/// 主页模块导航器
class HomeNavigator {
  HomeNavigator._();

  /// 跳转到详情
  static Future<T?>? toHome<T>() {
    return toPage<T>(HomeRoutes.details);
  }

  //   跳转到订单页面
  static Future<T?>? toOrder<T>(params) {
    return toPage<T>(HomeRoutes.order, arguments: params);
  }
}
